package com.zpark.jsoup;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

import java.io.File;
import java.io.IOException;

/**
 * @PackageName: com.zpark.jsoup
 * @ClassName: Demo02
 * @Description: 使用Jsoup.parse()方法从文件加载HTML。
 * @author: RZS
 * @date: 2021/8/15  23:10
 */
public class Demo02 {
    public static void main(String[] args) throws IOException {
        Document document = Jsoup.parse(new File("D:/HBuilderProjects/Demo/index.html"), "utf-8");
        System.out.println(document);
    }
}
